Permalink
Browse files

Not limiting Content-Type guessing for EnttiyBody to only local streams

  • Loading branch information...
mtdowling committed Apr 7, 2013
1 parent 6f044c5 commit 81f85f2a03d7d83edf1a9d00c778d52b2394f6e4
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/Guzzle/Http/EntityBody.php
@@ -142,9 +142,7 @@ public function getContentLength()
*/
public function getContentType()
{
- return ($this->isLocal() && $this->getWrapper() == 'plainfile' && file_exists($this->getUri()))
- ? Mimetypes::getInstance()->fromFilename($this->getUri())
- : null;
+ return $this->getUri() ? Mimetypes::getInstance()->fromFilename($this->getUri()) : null;
}
/**

0 comments on commit 81f85f2

Please sign in to comment.