code: def _gen_headers(self, bearer, url):
          '''
          Generate headders, adding in Oauth2 bearer token if present
          '''
          headers = {
              "Accept": "*/*",
              "Accept-Encoding": "gzip, deflate",
              "Accept-Language": ("en;q=1, fr;q=0.9, de;q=0.8, ja;q=0.7, " +
                                  "nl;q=0.6, it;q=0.5"),
              "User-Agent": ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) " +
                             "AppleWebKit/537.36 (KHTML, like Gecko) " +
                             "Chrome/68.0.3440.106 Safari/537.36"),
  
          }
          if bearer:
              headers["Authorization"] = "Bearer {0}".format(bearer)
          if url == "https://api.robinhood.com/options/orders/":
              headers["Content-Type"] = "application/json; charset=utf-8"
          return headerf _gen_headers(self, bearer, url):
          '''
          Generate headders, adding in Oauth2 bearer token if present
          '''
          headers = {
              "Accept": "*/*",
              "Accept-Encoding": "gzip, deflate",
              "Accept-Language": ("en;q=1, fr;q=0.9, de;q=0.8, ja;q=0.7, " +
                                  "nl;q=0.6, it;q=0.5"),
              "User-Agent": ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) " +
                             "AppleWebKit/537.36 (KHTML, like Gecko) " +
                             "Chrome/68.0.3440.106 Safari/537.36"),
  
          }
          if bearer:
              headers["Authorization"] = "Bearer {0}".format(bearer)
          if url == "https://api.robinhood.com/options/orders/":
              headers["Content-Type"] = "application/json; charset=utf-8"
          return headers
docs: Generate headders, adding in Oauth2 bearer token if present