这里会显示出您选择的修订版和当前版本之间的差别。
— |
google:gae:header [2011/02/17 03:20] (当前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== Google App Engine HTTP Header ====== | ||
+ | ===== Content-Length ===== | ||
+ | |||
+ | Google App Engine(GAE)会将Content-Length自动重置为0。 | ||
+ | |||
+ | 可以用下面的代码把Content-Length删掉: | ||
+ | <code python> | ||
+ | del self.response.headers['Content-Length'] | ||
+ | </code> | ||
+ | ==== 参考 ==== | ||
+ | * [[http://groups.google.com/group/google-appengine/browse_thread/thread/9a188d326fd41572|Google Fronted, Content-Length and HEAD requests]] | ||
+ | |||
+ | |||