Skip to content

Instantly share code, notes, and snippets.

@yoursunny
Created October 3, 2012 23:10
Show Gist options
  • Save yoursunny/3830480 to your computer and use it in GitHub Desktop.
Save yoursunny/3830480 to your computer and use it in GitHub Desktop.
ccnd robots.txt patch
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