projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1df32af
)
http: add 308 status_code, see RFC7238
author
Yazhong Liu
<yorkiefixer@gmail.com>
Sat, 7 Jun 2014 14:01:46 +0000
(22:01 +0800)
committer
Fedor Indutny
<fedor@indutny.com>
Sun, 8 Jun 2014 17:02:25 +0000
(10:02 -0700)
Signed-off-by: Fedor Indutny <fedor@indutny.com>
lib/_http_server.js
patch
|
blob
|
history
diff --git
a/lib/_http_server.js
b/lib/_http_server.js
index 934a21eee5609f38a4c552f329c31d35922a4cee..44ebaa61cc27646707b84d3e296a7e76c417421c 100644
(file)
--- a/
lib/_http_server.js
+++ b/
lib/_http_server.js
@@
-56,6
+56,7
@@
var STATUS_CODES = exports.STATUS_CODES = {
304 : 'Not Modified',
305 : 'Use Proxy',
307 : 'Temporary Redirect',
+ 308 : 'Permanent Redirect', // RFC 7238
400 : 'Bad Request',
401 : 'Unauthorized',
402 : 'Payment Required',