asynciomainproxy-ticket
Last change
on this file since c33b0ea was
9db4dcd,
checked in by Fiona Klute <fiona.klute@…>, 3 years ago
|
Handle GNUTLS_E_GOT_APPLICATION_DATA on gnutls_reauth()
Pending application data is cached in the connection input buffer, so
repeated attempts won't cause more memory allocations. If the buffer
is too small HTTP_REQUEST_ENTITY_TOO_LARGE is sent to the client.
The reauthentication test now contains a POST request so this code
path may (!) be taken during the test suite run.
|
-
Property mode set to
100755
|
File size:
963 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # |
---|
3 | # Mirror CGI script: Return the request body to the sender |
---|
4 | # |
---|
5 | # Copyright 2020 Fiona Klute |
---|
6 | # |
---|
7 | # Licensed under the Apache License, Version 2.0 (the "License"); you |
---|
8 | # may not use this file except in compliance with the License. You |
---|
9 | # may obtain a copy of the License at |
---|
10 | # |
---|
11 | # http://www.apache.org/licenses/LICENSE-2.0 |
---|
12 | # |
---|
13 | # Unless required by applicable law or agreed to in writing, software |
---|
14 | # distributed under the License is distributed on an "AS IS" BASIS, |
---|
15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
---|
16 | # implied. See the License for the specific language governing |
---|
17 | # permissions and limitations under the License. |
---|
18 | |
---|
19 | case "${REQUEST_METHOD}" in |
---|
20 | ("POST") |
---|
21 | echo "Status: 200 OK" |
---|
22 | # mirror the incoming content type |
---|
23 | echo -e "Content-Type: ${CONTENT_TYPE}\n" |
---|
24 | # return the incoming data |
---|
25 | cat - |
---|
26 | ;; |
---|
27 | (*) |
---|
28 | echo "Status: 405 Method Not Allowed" |
---|
29 | echo -e "Content-Type: text/plain\n" |
---|
30 | echo "Unsupported HTTP method." |
---|
31 | ;; |
---|
32 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.