Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions PSGI.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<Set-Cookie> lines).

=head4 Content-Type
=over 4

=item * Content-Type

There MUST be a C<Content-Type> except when the C<Status> is 1xx, 204
or 304, in which case there B<MUST NOT> be a content type.

=head4 Content-Length
=item * Content-Length

There B<MUST NOT> be a C<Content-Length> header when the C<Status> is
1xx, 204 or 304.
Expand All @@ -400,6 +402,8 @@ If the Status is not 1xx, 204 or 304 and there is no C<Content-Length> 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
Expand Down