Skip to content

Instantly share code, notes, and snippets.

@Bogdanp
Created October 17, 2018 05:43
Show Gist options
  • Save Bogdanp/d708c8bddb80986d97b3cfca13698ee7 to your computer and use it in GitHub Desktop.
Save Bogdanp/d708c8bddb80986d97b3cfca13698ee7 to your computer and use it in GitHub Desktop.
METHOD_NOT_ALLOWED_RESPONSE = b"""\
HTTP/1.1 405 Method Not Allowed
Content-type: text/plain
Content-length: 17
Method Not Allowed""".replace(b"\n", b"\r\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment