diff options
Diffstat (limited to 'bitbake/lib/toaster/orm/views.py')
-rw-r--r-- | bitbake/lib/toaster/orm/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/views.py b/bitbake/lib/toaster/orm/views.py index 61d14f9375..f32fa4d225 100644 --- a/bitbake/lib/toaster/orm/views.py +++ b/bitbake/lib/toaster/orm/views.py | |||
@@ -37,7 +37,7 @@ from django.views.decorators.csrf import csrf_exempt | |||
37 | def eventfile(request): | 37 | def eventfile(request): |
38 | """ Receives a file by POST, and runs toaster-eventreply on this file """ | 38 | """ Receives a file by POST, and runs toaster-eventreply on this file """ |
39 | if request.method != "POST": | 39 | if request.method != "POST": |
40 | return HttpResponseBadRequest("This API only accepts POST requests. Post a file with:\n\ncurl -F eventlog=@bitbake_eventlog.json http[s]://[server-address]/orm/eventfile\n", content_type="text/plain;utf8") | 40 | return HttpResponseBadRequest("This API only accepts POST requests. Post a file with:\n\ncurl -F eventlog=@bitbake_eventlog.json %s\n" % request.build_absolute_uri(reverse('eventfile')), content_type="text/plain;utf8") |
41 | 41 | ||
42 | # write temporary file | 42 | # write temporary file |
43 | (handle, abstemppath) = tempfile.mkstemp(dir="/tmp/") | 43 | (handle, abstemppath) = tempfile.mkstemp(dir="/tmp/") |