Django 3.0.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To for line in chunk.splitlines(True): if buffer_: if endswith_cr(buffer_) and not equals_lf(line): # Line split after a \r newline; yield buffer_ __dict__.pop('size', None) # Clear the computed size. return self.file.write(data) def endswith_cr(line): """Return True if line (a text or bytestring) ends with '\r'.""" return line.endswith('\r'0 码力 | 3085 页 | 2.95 MB | 1 年前3Django 3.1.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To for line in chunk.splitlines(True): if buffer_: if endswith_cr(buffer_) and not equals_lf(line): # Line split after a \r newline; yield buffer_ __dict__.pop('size', None) # Clear the computed size. return self.file.write(data) def endswith_cr(line): """Return True if line (a text or bytestring) ends with '\r'.""" return line.endswith('\r'0 码力 | 3094 页 | 3.03 MB | 1 年前3Django 1.8.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To0 码力 | 1685 页 | 6.01 MB | 1 年前3Django 1.8.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To0 码力 | 2454 页 | 2.85 MB | 1 年前3Django 2.1.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To0 码力 | 1910 页 | 6.49 MB | 1 年前3Django 1.11.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To0 码力 | 1878 页 | 6.40 MB | 1 年前3Django 1.10.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError 6.16. Request and response objects 1223 Django Documentation, Release0 码力 | 1817 页 | 6.19 MB | 1 年前3Django 1.11.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To0 码力 | 2747 页 | 2.67 MB | 1 年前3Django 1.10.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To0 码力 | 2538 页 | 2.59 MB | 1 年前3Django 2.1.x Documentation
header fields cannot contain newlines. An attempt to set a header field containing a newline character (CR or LF) will raise BadHeaderError Telling the browser to treat the response as a file attachment To0 码力 | 2790 页 | 2.71 MB | 1 年前3
共 30 条
- 1
- 2
- 3