Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add header as required by the w3c validator these days

  • Loading branch information...
commit 232c78aaa62b9672339ed4adbdedd96ac7807932 1 parent 05cbfd3
@mhagander mhagander authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tools/localhtmlvalidate/localhtmlvalidate.py
View
1  tools/localhtmlvalidate/localhtmlvalidate.py
@@ -64,6 +64,7 @@ def encode_multipart_formdata(fields, files):
# Now submit it to the w3c validator
h = httplib.HTTP("validator.w3.org")
h.putrequest("POST", "/check")
+ h.putheader("User-Agent: localcheck-tester/0.0")
h.putheader("content-type", "multipart/form-data; boundary=%s" % BOUNDARY)
h.putheader("content-length", str(len(body)))
h.endheaders()
Please sign in to comment.
Something went wrong with that request. Please try again.