Skip to content

Commit 3823705

Browse files
committed
Update to environment service.
1 parent 3173174 commit 3823705

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Integration/EnvironmentService.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,7 @@ public function registerCodecMatcher(CodecMatcherInterface $codecMatcher)
173173
->checkHeaders($this->parameters);
174174

175175
$this->encoder = $codecMatcher->getEncoder();
176-
$this->encoderMediaType = $codecMatcher->getEncoderHeaderMatchedType();
177-
178-
if (!$this->encoderMediaType) {
179-
$this->encoderMediaType = $codecMatcher->getEncoderRegisteredMatchedType();
180-
}
176+
$this->encoderMediaType = $codecMatcher->getEncoderRegisteredMatchedType();
181177

182178
$this->decoder = $codecMatcher->getDecoder();
183179
$this->decoderMediaType = $codecMatcher->getDecoderHeaderMatchedType();

0 commit comments

Comments
 (0)