diff --git a/PSGI.pod b/PSGI.pod index 72b725e..fd7c4fa 100644 --- a/PSGI.pod +++ b/PSGI.pod @@ -99,7 +99,7 @@ three values. ]; }; -=head3 The Environment +=head2 The Environment The environment MUST be a hash reference that includes CGI-like headers, as detailed below. The application is free to modify the environment. The @@ -386,12 +386,14 @@ If the same key name appears multiple times in an array ref, those header lines MUST be sent to the client separately (e.g. multiple C lines). -=head4 Content-Type +=over 4 + +=item * Content-Type There MUST be a C except when the C is 1xx, 204 or 304, in which case there B be a content type. -=head4 Content-Length +=item * Content-Length There B be a C header when the C is 1xx, 204 or 304. @@ -400,6 +402,8 @@ If the Status is not 1xx, 204 or 304 and there is no C header, a PSGI server MAY calculate the content length by looking at the Body. This value can then be appended to the list of headers returned by the application. +=back + =head4 Body The response body MUST be returned from the application as either