def getHeaders(self, upload_fields=False):
if upload_fields:<EOL><INDENT>headers = self.deviceBuilder.getDeviceUploadHeaders()<EOL><DEDENT>else:<EOL><INDENT>headers = self.deviceBuilder.getBaseHeaders()<EOL><DEDENT>if self.gsfId is not None:<EOL><INDENT>headers["<STR_LIT>"] = "<STR_LIT>".format(self.gsfId)<EOL><DEDENT>if self.authSubToken is not None:<EOL><INDENT>headers["<STR_LIT>"] = "<STR_LIT>" % self.authSubToken<EOL><DEDENT>if self.device_config_token is not None:<EOL><INDENT>headers["<STR_LIT>"] = self.device_config_token<EOL><DEDENT>if self.deviceCheckinConsistencyToken is not None:<EOL><INDENT>headers["<STR_LIT>"] = self.deviceCheckinConsistencyToken<EOL><DEDENT>if self.dfeCookie is not None:<EOL><INDENT>headers["<STR_LIT>"] = self.dfeCookie<EOL><DEDENT>return headers<EOL>
Return the default set of request headers, which
        can later be expanded, based on the request type