# Ошибка Curl при подключении локальных сайтов Discourse и WordPress

**URL:** https://meta.discourse.org/t/curl-error-connecting-local-discourse-and-wordpress-sites/248722
**Category:** Development
**Created:** [12.Декабрь.2022 23:39:25 UTC](https://meta.discourse.org/t/curl-error-connecting-local-discourse-and-wordpress-sites/248722 "2022-12-12T23:39:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [14.Декабрь.2022 09:32:35 UTC](https://meta.discourse.org/t/curl-error-connecting-local-discourse-and-wordpress-sites/248722/2 "2022-12-14T09:32:35Z")

</div>

Интересно! Это звучит знакомо, но я пока не могу точно вспомнить, где именно. Но, думаю, мой первый вопрос: где и почему Discourse устанавливает заголовок `content-encoding` в значение `null`?

Действительно, это похоже на проблему, возникающую только в режиме разработки. Это, вероятно, связано с:

> [@Developing on the mobile version of Discourse](https://meta.discourse.org/t/developing-on-the-mobile-version-of-discourse/216643/5?u=angus):
>
> After doing some digging through the source, I found two environment variables that help: PRINT\_EXCEPTIONS - shows all exceptions, maybe too noisy to be valuable but it helped RAILS\_LOGS\_STDOUT - logs everything to console which is what I was looking for above These helped confirm that there wasn’t an error occurring within Rails nor my theme’s SCSS. Apparently there was some gzip component stuck between ember and Rails. I’m not sure how this got there, but when the headers Content-Encoding …

---

_[View the full topic](https://meta.discourse.org/t/curl-error-connecting-local-discourse-and-wordpress-sites/248722)._
