diff --git a/ruterstop/__init__.py b/ruterstop/__init__.py
index 7217385..cfb9f42 100644
--- a/ruterstop/__init__.py
+++ b/ruterstop/__init__.py
@@ -45,13 +45,13 @@ ENTUR_GRAPHQL_QUERY = """
 webapp = bottle.Bottle()
 
 def not_found_error_handler(res):
-    res.content_type = "text/plain"
+    res.set_header("Content-Type", "text/plain")
     return "Ugyldig stoppested"
 
 webapp.error(code=404)(not_found_error_handler)
 
 def default_error_handler(res):
-    res.content_type = "text/plain"
+    res.set_header("Content-Type", "text/plain")
     return "Feil på serveren"
 
 webapp.default_error_handler = default_error_handler
@@ -152,6 +152,7 @@ def serve_departures(stop_id):
         kw["grouped"] = True
 
     deps = get_departures(stop_id=stop_id)
+    bottle.response.set_header("Content-Type", "text/plain")
     return format_departure_list(deps, **kw)
 
 

Returner text/plain fra server
Nå er det text/html

```
HTTP/1.0 200 OK
Date: Fri, 17 Jan 2020 22:50:33 GMT
Server: WSGIServer/0.2 CPython/3.7.5
Content-Length: 88
Content-Type: text/html; charset=UTF-8

25 Furuset T    3 min
31 Grorud T     8 min
31 Fornebu      9 min
31 Tonsenhagen 14 min
```
diff --git a/ruterstop/tests/test_webapp.py b/ruterstop/tests/test_webapp.py
index 24d4175..ab82f79 100644
--- a/ruterstop/tests/test_webapp.py
+++ b/ruterstop/tests/test_webapp.py
@@ -19,6 +19,7 @@ class WebAppTestCase(TestCase):
     @patch("ruterstop.get_departures", return_value=dict(a="foo"))
     def test_calls_api_on_proper_path(self, get_mock, format_mock):
         res = self.app.get("/1234")
+        self.assertEqual(res.content_type, "text/plain")
         get_mock.assert_called_once_with(stop_id=1234)
         format_mock.assert_called_once_with(dict(a="foo"))
 

pip install -e .
parse_log_pytest
requirements.txt
pytest
apt-get update apt-get install -y gcc
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
beautifulsoup4==4.13.3
bottle==0.13.2
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
coverage==7.2.7
exceptiongroup==1.2.2
freezegun==1.5.1
idna==3.10
importlib-metadata==6.7.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
python-dateutil==2.9.0.post0
requests==2.31.0
-e git+https://github.com/stigok/ruterstop.git@53b7887fb64918ec8c8d57d494c033afd06def14#egg=ruterstop
six==1.17.0
soupsieve==2.4.1
tomli==2.0.1
typing_extensions==4.7.1
urllib3==2.0.7
waitress==2.1.2
WebOb==1.8.9
WebTest==3.0.1
zipp==3.15.0

name: ruterstop
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - beautifulsoup4==4.13.3
      - bottle==0.13.2
      - charset-normalizer==3.4.1
      - coverage==7.2.7
      - exceptiongroup==1.2.2
      - freezegun==1.5.1
      - idna==3.10
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - packaging==24.0
      - pluggy==1.2.0
      - pytest==7.4.4
      - python-dateutil==2.9.0.post0
      - requests==2.31.0
      - six==1.17.0
      - soupsieve==2.4.1
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - urllib3==2.0.7
      - waitress==2.1.2
      - webob==1.8.9
      - webtest==3.0.1
      - zipp==3.15.0
prefix: /opt/conda/envs/ruterstop

ruterstop/tests/test_webapp.py::WebAppTestCase::test_calls_api_on_proper_path
ruterstop/tests/test_webapp.py::WebAppTestCase::test_calls_api_with_querystring_params ruterstop/tests/test_webapp.py::WebAppTestCase::test_simple_404_error ruterstop/tests/test_webapp.py::WebAppTestCase::test_simple_500_error
ruterstop/__init__.py
ruterstop/__init__.py