File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,14 @@ unless authentication bearer tokens are configured in the web application and us
98
98
99
99
### get file content [GET ]
100
100
101
- Honors the Accept header. The text type works for plain text files only.
101
+ Honors the `Accept` header. If the value of the header is set to `text/plain`
102
+ and there is a document in the index that has the genre detected as plain text,
103
+ the contents of the document will be returned. If the document is not found,
104
+ HTTP error 404 will be returned. If the genre of the document is not plain text,
105
+ HTTP error 406 will be returned.
106
+ Alternatively, one can use the `application/octet-stream` value of the header
107
+ which bypasses the document and genre check.
108
+ The `Content-type` header of the reply will be set accordingly.
102
109
103
110
+ Parameters
104
111
+ path (string ) - path of file, relative to source root
@@ -109,7 +116,7 @@ Honors the Accept header. The text type works for plain text files only.
109
116
foo
110
117
bar
111
118
112
- + Response 200 (application/octet-stream)
119
+ + Response 200
113
120
114
121
## File genre [/file/genre{?path}]
115
122
You can’t perform that action at this time.
0 commit comments