Created
October 3, 2012 23:10
-
-
Save yoursunny/3830480 to your computer and use it in GitHub Desktop.
ccnd robots.txt patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81a82,88 | |
> static const char *respRobots = | |
> "HTTP/1.1 200 OK" CRLF | |
> "Content-Type: text/plain" CRLF | |
> "Content-Length: 26" CRLF CRLF | |
> "User-Agent: *" CRLF | |
> "Disallow: /"; | |
> | |
99c106 | |
< char rbuf[16]; | |
--- | |
> char rbuf[32]; | |
125a133,135 | |
> else if (0 == strcmp(rbuf, "GET /robots.txt ")) { | |
> ccnd_send(h, face, respRobots, strlen(respRobots)); | |
> } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment