- w = write((*conp)->fd, buf, toread);
- if (w != toread)
- {
- fprintf(stderr, "write truncated\n");
- return -1;
+ if (*request_type == 'r')
+ { /* Only deal with things tha Pazpar2 received */
+ w = write((*conp)->fd, buf, toread);
+ if (w != toread)
+ {
+ fprintf(stderr, "write truncated\n");
+ return -1;
+ }