Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the issue with DESCRIBE where it wasn't returning the appropria…

…te format

when an accept header is sent
  • Loading branch information...
commit d937fff62993ee40eadc254b303dba66a2eed713 1 parent 3feb1bf
mischat mischat authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 src/http/httpd.c
4 src/http/httpd.c
@@ -381,11 +381,11 @@ static void http_query_worker(gpointer data, gpointer user_data)
381 381
382 382 if (ctxt->output) {
383 383 type = ctxt->output;
384   - } else if (ctxt->qr->construct && accept && strstr(accept, "text/turtle")) {
  384 + } else if ((ctxt->qr->construct || ctxt->qr->describe) && accept && strstr(accept, "text/turtle")) {
385 385 type = "text";
386 386 fprintf(fp, "Content-Type: text/turtle\r\n\r\n");
387 387 flags = 0;
388   - } else if (ctxt->qr->construct && accept && strstr(accept, "application/rdf+xml")) {
  388 + } else if ((ctxt->qr->construct || ctxt->qr->describe) && accept && strstr(accept, "application/rdf+xml")) {
389 389 type = "sparql";
390 390 } else if (accept && strstr(accept, "application/sparql-results+xml")) {
391 391 type = "sparql";

0 comments on commit d937fff

Please sign in to comment.
Something went wrong with that request. Please try again.